package com.by.bean;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@ApiModel("产品分类")
public class ProductCategory {

    int id;
@NotEmpty(message = "类别名称不能为空！")
    String name;

    int pid;

    int type;
@ApiModelProperty(hidden = true)
    List<ProductCategory> children;
}
